import axios, {Axios} from 'axios'
const context = "/ucenter"

/**
* 获取 FormulaRule 分页列表
*/
export function getFormulaRulePagination(data: any) {
    return axios.get(`${context}/formulaRule/pagination`, { params: data });
}


/**
* 获取 FormulaRule 所有数据
*/
export function getFormulaRuleAllList(data: any) {
    return axios.get(`${context}/formulaRule/allList`, { params: data });
}


/**
* 获取 FormulaRule 详情
*/
export function getFormulaRuleDetailById(id: any) {
    return axios.get(`${context}/formulaRule/${id}`, { params:{id} });
}


/**
* 新增 FormulaRule
*/
export function addFormulaRule(data: any) {
    return axios.post(`${context}/formulaRule`, data);
}

/**
* 修改 FormulaRule
*/
export function updateFormulaRule(data: any) {
    return axios.put(`${context}/formulaRule`, data);
}

/**
* 删除 FormulaRule
*/
export function batchRemoveFormulaRule(data: any) {
        return axios.post(`${context}/formulaRule/batchRemove`, data);
}
